package ocean.chinacraft.common.event.entity;

import net.minecraftforge.event.entity.EntityAttributeCreationEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import ocean.chinacraft.common.ModEntityTypes;
import ocean.chinacraft.common.constants.Constants;
import ocean.chinacraft.common.entity.fly.SkyLanternEntity;

/**
 * 监听注册
 *
 * @author zhang
 * @since 2021/12/31
 */
@Mod.EventBusSubscriber(modid = Constants.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ModEntityEvent {

    @SubscribeEvent
    public static void addEntityAttributes(EntityAttributeCreationEvent event) {
        event.put(ModEntityTypes.SKY_LANTERN.get(), SkyLanternEntity.createAttributes().build());
    }
}
